﻿@inject IStringLocalizer<DrawerPlacement> Localizer

<div>
    <p>
        <button type="button" class="btn btn-primary" @onclick="@OpenDrawer">@Localizer["Open"]</button>
    </p>
    <Drawer Placement="Placement.Left" @bind-IsOpen="@IsBackdropOpen" IsBackdrop="true">
        <p class="mt-3 text-center">
            @Localizer["PlacementContent"]
        </p>
    </Drawer>
</div>

@code {
    private bool IsBackdropOpen { get; set; }

    private void OpenDrawer()
    {
        IsBackdropOpen = true;
    }
}
